import api from './index'

// home
export default {
	// 单位类型
	entType: (params) => api.get('/system/dict/data/type/ent_type', params),
	// 入驻角色类型
	roleType: (params) => api.get('/system/dict/data/type/position_type',params),
	// 获取工程师审核状态
	engineerStatus: () => api.get('/wb/engineer/byUser'),
	// 工程师申请
	engineerApply: (data) => api.post('/wb/engineer', data),
	// 修改工程师入驻信息
	engineerChange: (data) => api.put('/wb/engineer', data),
	// 获取机构审核状态
	organizationStatus: () => api.get('/wb/organization/byUser'),
	// 机构申请
	organizationApply: (data) => api.post('/wb/organization',data),
	// 修改机构入驻信息(废弃)
	organizationChange: (data) => api.put('/wb/organization', data),
	// 维修师傅专业技能方向
	skillList: (data) => api.get('/system/dict/data/type/skill', data),
	// 查看机构信息
	wbMaintainCompany: (id) => api.get(`/wb/wbMaintainCompany/${id}`),
	// 修改机构信息
	putWbMaintainCompany: (data) => api.put('/wb/wbMaintainCompany', data) 
}